package edu.chl.da.ejb.ctrl;

import edu.chl.da.ejb.core.Airplane;
import edu.chl.da.ejb.core.Customer;
import edu.chl.da.ejb.core.Flight;
import edu.chl.da.ejb.core.Reservation;
import edu.chl.da.ejb.core.Seat;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author Max
 */
@Remote
public interface IManageReservation {
    public Reservation createReservation(Flight flight, Customer customer, Seat seat);
    public Reservation editReservation(Reservation reservation);
    public Seat getFirstSeat(Airplane airplane);
    public boolean removeReservation(Reservation reservation);
    public List<Reservation> getReservations(Customer customer);
    public List<Reservation> getReservations(Flight flight);
    public List<Reservation> getAllReservations();
}
